* minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Feb 2013 14:18:48 +0000 (15:18 +0100)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Feb 2013 14:18:48 +0000 (15:18 +0100)
"foo (bar, default: xxx): " prompts.

lisp/ChangeLog
lisp/minibuf-eldef.el

index 9a58609bf85b102647d94256170293a7caf4c56c..5e9e26c2138b364adfcec4df72fdf6e0f1b69735 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-10  Christopher Schmidt  <christopher@ch.ristopher.com>
+
+       * minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
+       "foo (bar, default: xxx): " prompts.
+
 2013-02-10  Chong Yidong  <cyd@gnu.org>
 
        * files.el (basic-save-buffer-1): Do not set
index 3826a91f0e0766770cfddc3ea556c85384db4331..3b59a9c622a902c033d8da94b845ae1a7a0dff80 100644 (file)
@@ -38,6 +38,7 @@
 (defun minibuffer-default--in-prompt-regexps ()
   `(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'"
      1 ,(if minibuffer-eldef-shorten-default " [\\2]"))
+    ("([^(]+?\\(, default\\(?: is\\)? \\(.*\\)\\)):? \\'" 1)
     ("\\( \\[.*\\]\\):? *\\'" 1)))
 
 (defcustom minibuffer-eldef-shorten-default nil